//
// Created by icezhang on 2021/9/8.
//

#include "RedisSingleton.h"
#include "iostream"

using namespace std;

string RedisSingleton::DoSomething() {
    string  result;
    cout<<"do something \n";
    redis_reply = static_cast<redisReply *>(redisCommand(redis_context, "GET name"));
    printf("GET name: %s\n", redis_reply->str);
    result=redis_reply->str;
    freeReplyObject(redis_reply);
    return result;
}